/*
 * FileName：UserTagServiceImpl.java 
 * <p>
 * Copyright (c) 2017-2020 <a href="https://www.smartwx.info">hermit(1154808491@qq.com)</a>.
 * <p>
 * Licensed under the GNU General Public License, Version 3 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/gpl-3.0.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package com.smart.wx.wxcms.service.impl;

import com.smart.wx.wxcms.entity.TagToFan;
import com.smart.wx.wxcms.entity.UserTag;
import com.smart.wx.wxcms.dao.UserTagMapper;
import com.smart.wx.wxcms.service.UserTagService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserTagServiceImpl implements UserTagService {

	@Resource
	private UserTagMapper userTagMapper;
	
	@Override
	public UserTag getById(Integer id) {
		return userTagMapper.getById(id);
	}

	@Override
	public UserTag queryObject(UserTag userTag) {
		return userTagMapper.queryObject(userTag);
	}

	@Override
	public List<UserTag> listForPage(UserTag searchEntity) {
		return userTagMapper.getUserTagListByPage(searchEntity);
	}

	@Override
	public void add(UserTag entity) {
		userTagMapper.add(entity);
	}

	@Override
	public void update(UserTag entity) {
		userTagMapper.update(entity);
	}

	@Override
	public void delete(UserTag entity) {
		userTagMapper.delete(entity);
	}


	@Override
	public Integer deleteBatchIds(List<Integer> ids) {
		return userTagMapper.deleteBatchIds(ids);
	}

	@Override
	public void addTagToUserList(List<TagToFan> list) {
		userTagMapper.addTagToUserList(list);
	}

	@Override
	public void deleteTTFByTagIds(String account,List<Integer> list) {
		userTagMapper.deleteTTFByTagIds(account,list);
	}

	@Override
	public void deleteTTFByOpenIds(List<String> list) {
		userTagMapper.deleteTTFByOpenIds(list);
	}

	@Override
	public void deleteTTF(TagToFan tagToFan) {
		userTagMapper.deleteTTF(tagToFan);
	}

}
